//
//  DbHandel.h
//  GOGOTravel
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 果果. All rights reserved.
//

#import <Foundation/Foundation.h>
@class DBsearchModel;
@class DengLuTabelModel;
@class Daily;
@class ShouChangModel;
@interface DbHandel : NSObject

@property (nonatomic,retain) DBsearchModel *model;

/** 单例方法 */
+ (DbHandel *)shareDbHandel;
/** 打开数据库 */
- (void)openDB;
/**<  创建表单 */
- (void)createTable;

/** 创建登陆数据库表单 */
- (void)createDengLuTable;

/** 创建Dailys收藏表单数据库 */
- (void)createDailySCTable;



//增加数据
- (void)insertModel:(DBsearchModel *)model;

- (void)insertDengLuModel:(DengLuTabelModel *)model;

- (void)insertDailyModel:(ShouChangModel *)model;



//删除数据

- (void)deleteModel:(DBsearchModel *)model;

//删除登陆数据库
- (void)deleteDengLuModel:(DengLuTabelModel *)model;


//删除收藏的数据内容
- (void)deleteDailyModel:(ShouChangModel *)model;

//更新数据

- (void)updateModel:(DBsearchModel *)model;
//查询数据
- (NSMutableArray *)selectTable;
- (NSMutableArray *)selectDengLuTable;
- (NSMutableArray *)selectDailyTable;
@end
